package com.example.myapplication.urbansubway;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.example.myapplication.Config.Commom;
import com.example.myapplication.Config.TokenBean;
import com.example.myapplication.R;

public class RouteoverviewActivity extends AppCompatActivity {

    private ImageView img;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_routeoverview);
        Intent intent = getIntent();
        String ROUTEOVERVIEWBEANID = intent.getStringExtra(Commom.ROUTEOVERVIEWBEANID);
        img = findViewById(R.id.img);
        ImageView imgurl  = findViewById(R.id.imgurl);
        Glide.with(this).load(TokenBean.IP+ROUTEOVERVIEWBEANID).into(imgurl);
        but_bloak();
    }

    private void but_bloak() {
        img.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                RouteoverviewActivity.this.finish();
            }
        });
    }

}